<?php
$publishLevels = DigCms_Service_Item::getPublishLevels();
$publishLevel = isset($this->item->publish_level) ? $this->item->publish_level: 0;
$currentPublishLevel = $publishLevels[$publishLevel];
$contentType = ($this->item->namespace != null && $this->item->namespace != '0') ? $this->type['name'] : 'Default Type';
?>
<div>
    <h2 class='ui-widget-header ui-state-default ui-corner-all'>
        Edit Item: <?= $this->item->name;?> <span class="<?= $this->item->namespace; ?>" style="float:right"><ins></ins> <?= $contentType ?></span>
    </h2>
    <div class='widget_inner'>
        <div id='form_wrapper'>
        <?php
        //Zend_Debug::dump($this->type);die();
        echo $this->action('form', $this->type['controller'], $this->type['module'], array('id' => $this->item->id));
        ?>
        </div>
    </div>
</div>

